export const routes = [
    {
        path: '/',
        name: '重定向页',
        redirect: '/login'
    },
    {
        path: '/login',
        name: "登录",
        component: () => import("@/view/login.vue"),
    },
    {
        path: '/index',
        name: "首页",
        redirect: '/first',
        component: () => import("@/layout/index.vue"),
        children: [
            {
                path: '/first',
                name: "第一页",
                component: () => import("@/layout/components/first.vue"),
            },
            {
                path: '/second',
                name: "第二页",
                component: () => import("@/layout/components/index.vue"),
            },
            {
                path: '/third',
                name: "第三页",
                meta: { back: true },
                component: () => import("@/layout/components/third.vue"),
            }
        ]
    },
]